//index.js
//获取应用实例
const app = getApp();
import HttpRequst from '../../utils/httpRequst.js'
import API from '../../utils/config.js'
var WxParse = require('../../component/wxParse/wxParse.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    
    info:""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
    var that=this;
    HttpRequst(true, API.itemDetail, 1, app.getUkey(), { id: options.id}, "POST", false, function (res) {
    
      that.setData({
        info: res.data
      });
      WxParse.wxParse("article", 'html', res.data.content, that, 5);

      
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  }

})